
class song implements Comparable<song> {
	private String song;
	private String singer;

	public song() {

	}

	public song(String song, String singer) {
		this.setSong(song);
		this.setSinger(singer);
	}

	public String getSong() {
		return song;
	}

	public void setSong(String song) {
		this.song = song;
	}

	public String getSinger() {
		return singer;
	}

	public void setSinger(String singer) {
		this.singer = singer;
	}

	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof song)) {
			return false;
		}
		song per = (song) obj;
		if (this.song.equals(per.song) && this.singer.equals(per.singer)) {
			return true;
		} else {
			return false;
		}
	}
	public int compareTo(song o){
		return this.getSong().compareTo(o.getSong());	
			}
}

